import { get, post } from '@/utils/request'
const BASE_URL = window.baseUrl.dispose

/** 分页查询 */
export function queryPageList(query) {
  return get(BASE_URL + '/report/pageList', query)
}

/** 删除报告 */
export function deleteReport(query) {
  return post(BASE_URL + `/report/delete?ids=${query}`)
}

/** 生成报告: 手动 */
export function createReport(query) {
  return post(BASE_URL + '/report/generate', query)
}

/** 生成报告: 自动 */
export function createReportAuto(query) {
  return post(BASE_URL + '/reportConfig/add', query)
}

/** 关联配置查询 */
export function queryReport(query) {
  return get(BASE_URL + '/reportConfig/get', query)
}

/** 关联配置修改 */
export function updateReport(query) {
  return post(BASE_URL + '/reportConfig/update', query)
}

/** 关联配置删除 */
export function deleteConfig(query) {
  return post(BASE_URL + '/reportConfig/delete?id=' + query)
}